﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Register.Domain
{
    /// <summary>
    /// 养殖信息表
    /// </summary>
    [Table("Breedings")]
    public class Breedings
    {
        /// <summary>
        /// 养殖编号
        /// </summary>
        [Key]
        public int BreedingsId {  get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        [StringLength(50)]
        public string Bread { get; set; } = string.Empty;
        /// <summary>
        /// 来源
        /// </summary>
        [StringLength(50)]
        public string Source { get; set; } = string.Empty;
        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedingDay {  get; set; }
        /// <summary>
        /// 饲养品牌
        /// </summary>
        [StringLength(100)]
        public string BreedingBrand { get; set; } = string.Empty;
        /// <summary>
        /// 饲养负责人
        /// </summary>
        [StringLength(50)]
        public string HeadFeeder { get; set; } = string.Empty;
        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime PublicationDate { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete {  get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        public int TraceabilityId {  get; set; }
    }
}
